import request from '@/utils/request'

// 获取铅封类型
export function findSealnoType(code = '', status = '') {
  return request({
    url: '/mobile/sealno/findSealnoType',
    method: 'get',
    params: {
      code,
      status
    }
  })
}

// 获取铅封数据集合，使用type分组
export function findAllTblSealno(type, page = 1, pageSize = 10, code = '', status = '') {
  return request({
    url: '/mobile/sealno/findAllTblSealno',
    method: 'get',
    params: {
      type,
      page,
      pageSize,
      code,
      status
    }
  })
}

// 获取铅封详情
export function findSealnoDetailById(id) {
  return request({
    url: `/mobile/sealno/findSealnoDetailById/${id}`,
    method: 'get'
  })
}

// 获取铅封详情
export function findSealnoDetailByCode(snCode) {
  return request({
    url: `/mobile/sealno/findSealnoDetailByCode/${snCode}`,
    method: 'get'
  })
}
